package main

import (
	grpc2 "google.golang.org/grpc"
	"keep/common/config"
	"keep/common/grpc"
	"keep/common/initialize"
	"keep/rpc/internal"
	"keep/rpc/model"
)

func main() {
	config.Init()

	initialize.Nacos()
	initialize.Mysql()
	model.MysqlInit()
	initialize.Redis()
	initialize.ConSul()

	grpc.Grpc("127.0.0.1", 8888, func(server *grpc2.Server) {
		internal.RegisterGrpc(server)
	})

}
